/**
 * This file is part of 1genia trampoline
 * Copyright (C) 2007 - 2008 1genia (contact@1genia.com)
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of the License. 
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; see the file COPYING.TXT.  If not,
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301, USA. 
 **/
package com.genia.toolbox.projects.csv.test.bean.model.enumeration;

/**
 * describes the various status of a supplier.
 * <p>
 * WARNING: This file is auto-generated. All modifications will be lost. All
 * modifications must be done on the UML model.
 */
public enum SupplierStatus
    implements com.genia.toolbox.basics.i18n.EnumDescriptable
{
  /**
   * approved supplier.
   */
  APPROVED("com.genia.toolbox.projects.ace.war.bean.model.enumeration.SupplierStatus.APPROVED"),
  /**
   * suspended supplier.
   */
  SUSPENDED("com.genia.toolbox.projects.ace.war.bean.model.enumeration.SupplierStatus.SUSPENDED"),
  /**
   * prohibited supplier (impermissible).
   */
  PROHIBITED("com.genia.toolbox.projects.ace.war.bean.model.enumeration.SupplierStatus.PROHIBITED"),
  /**
   * unknown status (used as old status for a new Supplier).
   */
  NONE("com.genia.toolbox.projects.ace.war.bean.model.enumeration.SupplierStatus.NONE");
  /**
   * the description of the values of the enumeration.
   */
  private final transient com.genia.toolbox.basics.i18n.I18nMessage description;



  /**
   * constructor.
   * 
   * @param descriptionKey
   *          the key of the description of the value of the enumeration
   */
  private SupplierStatus(final String descriptionKey)
  {
    this.description = new com.genia.toolbox.basics.i18n.impl.I18nMessageImpl(descriptionKey);
  }



  /**
   * returns the description of the object.
   * 
   * @return the description of the object
   */
  public com.genia.toolbox.basics.i18n.I18nMessage getDescription()
  {
    return description;
  }



  /**
   * returns the ordinal of the enumeration.
   * 
   * @return the ordinal of the enumeration
   */
  public int getOrdinal()
  {
    return ordinal();
  }
}